﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="ControlMakeLink.ascx.cs" Inherits="Usercontrol_ControlMakeLink" %>

<style type="text/css">
#txtLink{ width:400px; color:Blue}
</style>
<script type="text/javascript">
    $().ready(function () {

        $("#btMake").click(function () {
            $.ajax({
            type: "POST",
            url: '<%=ResolveUrl("~/Webservice/WebService.asmx/MakeLink")%>',
            data: "{}",
            contentType: "application/json; charset=utf-8",
            dataType: "json",
            success: function (data) {

                $("#txtLink").val(data.d);
                   
            }
        });

        });

    });

</script>
<p>
    <input id="btMake" type="button" value="Tạo link gửi cho khách hàng" /><br />
</p>

<input id="txtLink" readonly="readonly" type="text" />


